<!--
 * @Author: hu_binbin
 * @Date: 2021-08-20 09:21:53
 * @LastEditTime: 2021-08-20 15:38:32
 * @Description: 信息查询首页
-->

<template>
	<article class="bg_4dbfae">
        <!-- 标题-->
        <div class="title-bg">
			<Theader :title="title" :headerStyle="{color:'#fff'}" :textStyle="{color:'#fff'}" :titleStyle="{color:'#fff'}">
				<template slot="header_arrow">
					<van-icon size="25" name="arrow-left" @click="$pageBack" />
				</template>
				<template slot="header_icon">
					<van-image class="imgSize" width="34" height="47" @click="rfidBtn" :src="icon.rfid" />
                    <van-image class="imgSize" width="44" height="44" @click="scanBtn" :src="icon.scan" />
				</template>
			</Theader>
        </div>
        <div style="overflow-y: auto;height: calc(100% - 60px);">
            <div class="bg-cen"></div>
            <div class="menus">
                <div class="menus-item">
                    <div class="menus-item-l">
                        <van-image width="25" height="25" :src="icon.workCard"></van-image>
                    </div>
                    <div class="menus-item-r">设备台账查询</div>
                </div>
                <div class="menus-item">
                    <div class="menus-item-l">
                        <van-image width="25" height="25" :src="icon.workCard"></van-image>
                    </div>
                    <div class="menus-item-r">运维值班查询</div>
                </div>
                <div class="menus-item" @click="gotoTaskPlan">
                    <div class="menus-item-l">
                        <van-image width="25" height="25" :src="icon.workCard"></van-image>
                    </div>
                    <div class="menus-item-r">巡视计划查询</div>
                </div>
                <div class="menus-item" @click="gotoDefectDanger">
                    <div class="menus-item-l">
                        <van-image width="25" height="25" :src="icon.workCard"></van-image>
                    </div>
                    <div class="menus-item-r">缺陷隐患查询</div>
                </div>
                <div class="menus-item">
                    <div class="menus-item-l">
                        <van-image width="25" height="25" :src="icon.workCard"></van-image>
                    </div>
                    <div class="menus-item-r">故障信息查询</div>
                </div>
            </div>
        </div>
        
	</article>
</template>

<script type="text/javascript">
    import Theader from "../component/header"
	export default {
		name: 'queryInfoMenu',
		components: {
            Theader,
		},
		data() {
			return {
				active: 0,
				title: "信息查询",
				icon: {
					rfid:require('../../../../assets/tour/rifid.png'),
                    scan:require('../../../../assets/tour/scan.png'),
                    workCard:require('../../../../assets/tour/work-card.png'),
                },
			}
		},
		
		computed: {
			
		},
		
		methods: {
            /**
            * @description: rifid
            * @param {*}
            * @return {*}
            */         
			rfidBtn() {

            },
            /**
             * @description: 扫一扫
             * @param {*}
             * @return {*}
             */
            scanBtn() {

			},
			showScreenPage() {

            },
            /**
             * @description: 返回
             * @param {*}
             * @return {*}
             */
            back() {
                history.go(-1)
            },
            /**
             * @description: 缺陷隐患列表页
             * @param {*}
             * @return {*}
             */
            gotoDefectDanger(){
                this.$router.push({
                    name:'defectDangerList'
                })
            },
            gotoTaskPlan() {
                this.$router.push({
                    name:'queryTourPlanList'
                })
            }
		},
		
		watch: {
			
		},
		mounted() {
			
		},
		created() {

		},
		
	}
</script>

<style scoped>
	article {
        height: 100vh;
	}
	.bg_4dbfae{
		background: #F4F5F6 !important;
	}
	.title-bg{
		height: 45px;
		width: 100%;
        background: #10B296;
	}
    .bg-cen{
        height: 85px;
		width: 100%;
        background: #10B296; 
    }
    .menus{
        position: relative;
        top: -5rem;
    }
    .menus-item{
        margin: 1rem;
        background: #fff;
        display: flex;
        align-items: center;
        font-size: 1rem;
        padding: 2.5rem;
        border-radius: 0.7rem;
    }
    .menus-item-l{
        display: flex;
        width: 30%;
        justify-content: center;
    }
</style>

